const path = require("path");


function resolve(dir) {
  return path.join(__dirname, dir);
}

module.exports = {
  chainWebpack: config => {
    config.resolve.alias
      .set("@", resolve("src"))
  },
  devServer: {
    host: 'localhost',
  },
  configureWebpack: {
    devServer: {
      port: 8088,//端口号 
      open: true,
    }
  },
  lintOnSave: false,
  css: {
    loaderOptions: {
      sass: {
        data: `@import "@/assets/scss/variable.scss";` //引入全局变量   

      }

    }

  }
}